$Status = smtp.Connect (<Server>,<Port>)
This function is used to connect to SMTP Server.
Parameters
<Server> Specifies the address of SMTP Server.
<Port> Specifies the port number. The default port for connection is 25.
Return Value
Function returns 1 on success, 0 on failure.